<?php
/**
 * @package BannersModule
 */
class BannerLocation implements ArrayAccess {
	
	/**
	 * @var String
	 */
	public $name;
	/**
	 * @var String
	 */
	public $group;
	/**
	 * @var String
	 */
	public $location;
	/**
	 * @var String
	 */
	public $color;
	/**
	 * If random one banner will be randomly chosen.
	 * If all then all banners html is returned as array.
	 * @var String [random|all]
	 */
	public $handleMultiple;
	
	/**
	 * @var Int
	 */
	public $defaultWidth;
	/**
	 * @var Int
	 */
	public $defaultHeight;
	
	
	/**
	 * @var Int
	 */
	public $minWidth;
	/**
	 * @var Int
	 */
	public $maxWidth;
	/**
	 * @var Int
	 */
	public $minHeight;
	/**
	 * @var Int
	 */
	public $maxHeight;
	
	/**
	 * @var Int
	 */
	public $maxSize;
	
	
	public function __construct() {
		
	}
	
	public static function c() {
		return new BannerLocation();
	}
	
	public function __call( $method, $args ) {
		$this->$method = $args[0];
		return $this;
	}
	
	public function offsetExists( $var) {
		return isset($this->$var);
	}
	
	public function offsetGet( $var) {
		return $this->$var;
	}
	
	public function offsetSet( $var, $value) {
		$this->$var = $value;
	}
	
	public function offsetUnset( $var) {
		unset($this->$var);
	}
	
}
?>